package fina2.dcs.i18n;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Scope;

@Entity
@Table(name = "SYS_LANGUAGES")
@SuppressWarnings("serial")
@Scope(ScopeType.SESSION)
public class Language implements Serializable {
	private BigDecimal id;
	private String code;
	private String name;
	private String dateFormat;
	private String numberFormat;
	private String fontFace;
	private BigDecimal fontSize;
	private String htmlCharset;
	private String xmlEncoding;

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DATEFORMAT")
	public String getDateFormat() {
		return dateFormat;
	}

	public void setDateFormat(String dateFormat) {
		this.dateFormat = dateFormat;
	}

	@Column(name = "NUMBERFORMAT")
	public String getNumberFormat() {
		return numberFormat;
	}

	public void setNumberFormat(String numberFormat) {
		this.numberFormat = numberFormat;
	}

	@Column(name = "FONTFACE")
	public String getFontFace() {
		return fontFace;
	}

	public void setFontFace(String fontFace) {
		this.fontFace = fontFace;
	}

	@Column(name = "FONTSIZE")
	public BigDecimal getFontSize() {
		return fontSize;
	}

	public void setFontSize(BigDecimal fontSize) {
		this.fontSize = fontSize;
	}

	@Column(name = "HTMLCHARSET")
	public String getHtmlCharset() {
		return htmlCharset;
	}

	public void setHtmlCharset(String htmlCharset) {
		this.htmlCharset = htmlCharset;
	}

	@Column(name = "XMLENCODING")
	public String getXmlEncoding() {
		return xmlEncoding;
	}

	public void setXmlEncoding(String xmlEncoding) {
		this.xmlEncoding = xmlEncoding;
	}

	public String toString() {
		return name;
	}
}
